package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import models.*;

public class Application extends Controller {

    public static void index() {
        Country country = new Country("Test country 1", "language","rub").save();
        City city = new City(country,"test city 1","812").save();
        User user = new User(city, country, "fisrt name 1","second name 1","last name 1","test@mail.ru","1234567",1).save();
        System.out.println("TEST: "+user.getCity().getName()+" "+user.getEmail());
        
        user.delete();
        render();
    }

}